package com.masterlu.ioc.service.impl;

import com.masterlu.ioc.bean.User;
import com.masterlu.ioc.dao.UserDao;
import com.masterlu.ioc.service.UserService;

/**
 * @date created in 2021/6/1 14:50
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public String login() {

        User user = userDao.selectById();
        System.out.println("用户信息" + user);
        return "登录成功";
    }

}
